package baidu.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by asus on 2018/10/19.
 */
@Service
public class WxUserCfg {
    @Value("#{config['server.wxUser.url']}")
    private String path;

    protected String url="/info";

    public String getWxUserInfo() {
        return String.format("%s%s/detail", path, url);
    }

    public String geBossWxQrCode() {
        return String.format("%s%s/bossWxId", path, url);
    }

    public String transfers(){return String.format("%s/wx/transfers/", path);}

    public String getQrcode(){return String.format("%s/qrcode/", path);}

    public String newQrcode(){
        return "https://ai.yncljk.com/wechat/gateway/qrcode/agentCode";
    }

    public String editWxUser(){
        return "https://ai.yncljk.com/wechat/gateway/info/edit/agentId";
    }


}
